home *** CD-ROM | disk | FTP | other *** search
- Path: news1.erols.com!newsmaster@erols.com
- From: Chris Cobb <ccobb@cseg.com>
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: GCC PROBLEMS?
- Date: 18 Mar 1996 00:45:48 GMT
- Organization: CSEG, Inc.
- Message-ID: <4iibns$1go@news5.erols.com>
- References: <Qx9jRAAse0SxEws3@naylor1.demon.co.uk>
- NNTP-Posting-Host: ccobb.erols.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.22KIT (Windows; U; 16bit)
-
- Chris Naylor <chris@naylor1.demon.co.uk> wrote:
- >Can someone helpme with the following problems?
- >
- >USHORT chip my_image_data[]=
- >{
- >0xE300...
- > The above is an example from the ACM manual,but fails to compile
- >with GCC and is something to do with `chip` part, obviously this
- >specifies that it should be in CHIPMEM but gcc does not reconise this
- >
- >Also what do the PROTO files do.
- >How do I generate these files or dont I need to as most of the examples
- >in ROM KERNAL MANUALS seem to #include these files.
- >
- >
- >Martin Naylor
-
- You will have to take the chip keyword out. Then dynamicall allocate
- a buffer of the same size using AllocMem(size, MEM_CHIP...). Then
- copy the static buffer into the dynamically allocated buffer.
-
- Chris
-
-
-